<%@ page language="java" import="java.util.*" pageEncoding="GB18030"
	import="DomainData.ReviewBean,Application.Dao.ReviewDao"%>

<!-- <div id="submenu_rating">
			<h2 class="subhead">Rate Restaurant</h2>
			<ul class="menu">
				<li><a href="#">Post Rating</a></li>
				<li><a href="#">Review Rating</a></li>
			</ul>
			<div class ="clear"></div>
</div> -->


<div id="post" >
		

			<div class="post_top">
				<div class="post_title"><h2>REVIEW</h2></div>
			</div>

			<div class="post_body">

				
          		
          		<div class="entry">
          			<%
					List<ReviewBean> reviewlist = ReviewDao.getReviewList();
						for(ReviewBean i : reviewlist){
							int rID = i.getReviewID();
							String content = i.getContent();
							out.println("<p>No. "+rID+" :"+content+"</p>");
							counter++;
						}
						
				 	%>
          		</div>
          		
          		<div class = "post_rating">
					<div class="rating_title">Rating: </div>
						<div class="rating_container">
							<input name="star1" type="radio" class="star"/>
							<input name="star1" type="radio" class="star"/>
							<input name="star1" type="radio" class="star"/>
							<input name="star1" type="radio" class="star"/>
							<input name="star1" type="radio" class="star"/>
						</div>
				</div>
				
				
			</div>
			<form id ="postReview" name="ReviewImf" action="PostReview.jsp" method="post">
				<div class="post_input">
					<textarea id = "inputtextarea"class="input" rows="7" cols="100" name = "comments"></textarea><br>
					<input type="submit" class="sendform" value="submit" />
				</div>
			</form>
			</div>